package collection;

import pojo.Person;

import java.util.ArrayList;
import java.util.List;

public class TrasnferDemo {


    public static void main(String[] args) {
        Person person = new Person();
        person.setName("张三");
        person.setAge(20);
        List<Person> list  = new ArrayList<>();
        list.add(person);
        person.setName("李四");
        System.out.println(person.toString());

    }
}
